<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var tab1 = 10;
        var tab2 = 20;
        var table;
        table = tab2;
        tab2 = tab1;
        tab1 = table;
        console.log(tab1);
        console.log(tab2);
    </script>
</head>

<body>

</body>

</html>